package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/** 
 * @author liuxin
 * @create 2023-12-05 11:54:31 
 * @description 会话信息 
 */
@Data
@TableName(value ="yx_session_talk")
@ApiModel(value = "会话信息" , description="yx_session_talk")
public class YxSessionTalkEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "talk_id",type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value="主键")
    private String talkId;

    @TableField(value="sender_id")
    @ApiModelProperty(value="发送者ID")
    private Long senderId;

    @TableField(value="sender_name")
    @ApiModelProperty(value="发送者名称")
    private String senderName;

    @TableField(value="receiver_id")
    @ApiModelProperty(value="接收人ID")
    private Long receiverId;

    @TableField(value="receiver_name")
    @ApiModelProperty(value="接收人名称")
    private String receiverName;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="update_time")
    @ApiModelProperty(value="更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(value="head_url")
    @ApiModelProperty(value="头像地址")
    private String headUrl;

    @TableField(value="status")
    @ApiModelProperty(value="状态 ： 0：删除  1：正常")
    private Integer status;

    @TableField(value="session_id")
    @ApiModelProperty(value="会话id")
    private String sessionId;

    @TableField(value="sender_type")
    @ApiModelProperty(value="发送者类型  1:人员会话  2:店铺会话 ")
    private Integer senderType;

    @TableField(value="receiver_type")
    @ApiModelProperty(value="接收者类型  1:人员会话  2:店铺会话 ")
    private Integer receiverType;
}
